import React from 'react'
import NoDataImg from "../../../../res/images/web/shared/nothing@2x.png";

const NoDataPage = props => {
    const {text = '暂时没有数据哦~'} = props


    const noDataTemplate = (
        <div style={{
            width: '100%',
            display: 'flex',
            justifyContents: 'center',
            alignItems: 'center',
            flexDirection: 'column',
            paddingTop: "8rem",
        }}>
            <img alt='' src={NoDataImg} style={{width: '50%',}}/>
            <span
                style={{
                    marginTop: '1rem',
                    fontSize: '14px',
                    color: 'rgba(134,134,134,1)',
                }}
            >{text}</span>
        </div>
    )

    return noDataTemplate
}

export default NoDataPage
